package com.lanyucloud.redis;

import java.util.Date;

import com.lanyucloud.redis.utils.RedisUtil;
import com.lanyucloud.tools.util.DateUtil;

import redis.clients.jedis.Jedis;

/**
 * Hello world!
 *
 */
public class App 
{
	public static final String KEY_HASH_TIME = "KEY_HASH_TIME"; //KEY_HASH_TIME
	static RedisUtil redisUtil = RedisUtil.getInstance();
	
    public static void main( String[] args )
    {
    	final Jedis jedis = redisUtil.getJedis();
    	Date now = new Date();
    	long field = DateUtil.before(Long.valueOf("")).getTime();
    	jedis.hset(KEY_HASH_TIME, String.valueOf(field), String.valueOf(Math.random() * 10000));


    }
}
